import { Injectable } from '@nestjs/common';
import axios from 'axios';
import { Responese, UserList } from 'src/types';

@Injectable()
export class RequestService {
  async getManagerIds(managerNames: string) {
    return (
      await axios.get(`http://127.0.0.1:3001/api/user/list`, {
        params: {
          nickName: managerNames,
        },
      })
    ).data as Responese<UserList>;
  }
}
